﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchResults.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.Search.SearchResults" %>
<style>
    .item-content
    {
        height: 130px;
        border-bottom-color: #b2b2b2;
        border-bottom-style: dotted;
        border-bottom-width: 1px;
    }
</style>
<div class="content-palce">
    <div class="content-palce-title" style="margin-top: 0px; width: 697px;">
        Search
    </div>
    <div class="content-place-body">
        <asp:DataList ID="DataList1" runat="server" DataKeyField="ID" Width="100%">
            <ItemTemplate>
                <div class="item-content">
                    <table width="100%">
                        <tr>
                            <td valign="top" style="height: 100px; width: 146px">
                                <div class="photo-error" style="width: 146px; height: 100px; border-width: 1px; border-color: #b9b9b9;
                                    border-style: solid">
                                    <a id="hinhAnh" href='<%# "~/CruisesDetail.aspx?id="+Eval("ID") %>' runat="server"
                                        title='<%# Eval("TieuDe") %>' style="text-decoration: none;">
                                        <img id="Img1" runat="server" src='<%# Eval("HinhAnh", "~/Images/HinhAnh/{0}") %>'
                                            width="146" height="100" style="border-width: 0px;" /></a>
                                </div>
                            </td>
                            <td style="vertical-align: top; text-align: left; display: inline;">
                                <img alt="tab" style="display: inline;" src="../../Styles/Images/tab_right.png" />
                                <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" NavigateUrl='<%# "~/CruisesDetail.aspx?id="+Eval("ID") %>'
                                    Text='<%# Eval("TieuDe") %>' Font-Italic="False" Font-Size="13px" 
                                    Font-Underline="False" ForeColor="#666666"></asp:HyperLink>
                                <br />
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("GhiChu") %>'></asp:Label>
                            </td>
                        </tr>
                    </table>
                </div>
            </ItemTemplate>
        </asp:DataList>
        <asp:SqlDataSource ID="SqlDataSourceSearch2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT dbo.tblTour.ID, dbo.tblTour.TieuDe, dbo.tblTour.HinhAnh, dbo.tblTour.GhiChu, dbo.tblTour.TheLoaiID, dbo.tblTour.Hot, dbo.tblTour.STT, dbo.tblTour.DisplayInTop, dbo.tblTour.SearchID, dbo.tblTheLoai.ID AS TLID FROM dbo.tblTour INNER JOIN dbo.tblTheLoai ON dbo.tblTour.TheLoaiID = dbo.tblTheLoai.ID WHERE (dbo.tblTour.TheLoaiID = @theloai) ">
            <SelectParameters>
                <asp:QueryStringParameter Name="theloai" QueryStringField="Loai" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSourceSearch" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT dbo.tblTour.ID, dbo.tblTour.TieuDe, dbo.tblTour.HinhAnh, dbo.tblTour.GhiChu, dbo.tblTour.TheLoaiID, dbo.tblTour.Hot, dbo.tblTour.STT, dbo.tblTour.DisplayInTop, dbo.tblTour.SearchID, dbo.tblTheLoai.ID AS TLID FROM dbo.tblTour INNER JOIN dbo.tblTheLoai ON dbo.tblTour.TheLoaiID = dbo.tblTheLoai.ID WHERE (dbo.tblTour.TheLoaiID = @theloai) AND (dbo.tblTour.SearchID = @SID)">
            <SelectParameters>
                <asp:QueryStringParameter Name="theloai" QueryStringField="Loai" />
                <asp:QueryStringParameter DefaultValue="" Name="SID" QueryStringField="price" />
            </SelectParameters>
        </asp:SqlDataSource>
    </div>
</div>
